#!/bin/bash


PLATFORM="$1"
if [ $PLATFORM == "ax" ]; then
	. ~/bin/t31.sh
	export TARGET_CC=mips-linux-uclibc-gnu-gcc
	export TARGET_AR=mips-linux-uclibc-gnu-ar
	export OPENSSL_DIR=/home/armers/projects/embed/t31/src/ipc_sdk
	TARGET="mipsel-unknown-linux-uclibc"
else
	TARGET="x86_64-unknown-linux-gnu"
fi
#xargo build -Z build-std --release --target mipsel-unknown-linux-uclibc
cargo xbuild --release -Z build-std -Z build-std-features=panic_immediate_abort --target $TARGET
